{include_core file="lib/header.html" title="温馨提醒"}
{$redirect_str = '直接跳转'}
{if empty($redirect_url)}
  {$redirect_url = "{AnUrl('')}"}
  {$redirect_str = '返回首页'}
{/if}
<div id="header">
  <div class="login-head-inner clearfix">
    <h1 class="logo"><a href="{AnUrl('')}"><img src="{$smarty.const.STATIC_URL}/images/logo.png" width="112" height="36"></a></h1>
    <a href="javascript:void(0);" class="link">温馨提醒</a>
  </div>
</div>
<div id="container">
<!--end active-account-->
<div class="active-account register-success">
  <h2 class="title">{$msg}</h2>
  <p class="p1">系统将在<span id="jumpTime">5</span>秒后跳转，如果没有请点击<a href="{$redirect_url}" class="email-link">手动跳转</a></p>
  <p><a href="{$redirect_url}" class="btn2 active-btn">{$redirect_str}</a></p>
</div>
<!--end register-success-->
</div>

{if $redirect_url}
<script type="text/javascript">
var time = 5;
var jumpInterval = setInterval(function(){
  time--;
  if (time < 0) time = 0;
  $("#jumpTime").text(time);
  if (time == 0) {
      clearInterval(jumpInterval);
      location.href = "{$redirect_url}";
  }
}, 1000);
</script>
{/if}
{include_core file="lib/footer.html"}
